From 5c467605c3a147482316df5d0adbd24e7553c4ef Mon Sep 17 00:00:00 2001 From: Alex Williamson Date: Tue, 31 Jul 2007 10:30:40 -0600 Subject: [PATCH] [IA64] Fix PAL_HALT of dom0 for panic_notifier_list Currently dom0 cannot call panic_notifier_list in panic(). This is caused by PAL_HALT called from smp_send_stop(). When dom0 calls PAL_HALT, Hypervisor reset system. So if dom0 panic, we cannot use panic_notifier_list. Current PAL_HALT of xen is different from ia64 specification. This patch fixes this issue. Signed-off-by: Akio Takebe --- xen/arch/ia64/xen/fw_emul.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/xen/arch/ia64/xen/fw_emul.c b/xen/arch/ia64/xen/fw_emul.c index 4b25001750..13bdb71c3f 100644 --- a/xen/arch/ia64/xen/fw_emul.c +++ b/xen/arch/ia64/xen/fw_emul.c @@ -819,15 +819,9 @@ xen_pal_emulator(unsigned long index, u64 in1, u64 in2, u64 in3) } break; case PAL_HALT: - if (current->domain == dom0) { - printk ("Domain0 halts the machine\n"); - console_start_sync(); - (*efi.reset_system)(EFI_RESET_SHUTDOWN,0,0,NULL); - } else { - set_bit(_VPF_down, ¤t->pause_flags); - vcpu_sleep_nosync(current); - status = PAL_STATUS_SUCCESS; - } + set_bit(_VPF_down, ¤t->pause_flags); + vcpu_sleep_nosync(current); + status = PAL_STATUS_SUCCESS; break; case PAL_HALT_LIGHT: if (VMX_DOMAIN(current)) { -- 2.30.2